package com.jc.subject.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author gongjiawei
 * @Date 2024/6/14 15:03
 * @注释
 */
@Getter
@AllArgsConstructor
public enum CategoryTypeFlagEnum {
    PRIMARY(1,"岗位大类"),
    SECOND(2,"二级分类");
    private final Integer code;
    private final String desc;

   public static CategoryTypeFlagEnum getByCode(int codeValue){
       for (CategoryTypeFlagEnum value : CategoryTypeFlagEnum.values()) {
           if (value.code==codeValue)
               return value;

       }
       return null;
    }
}
